home *** CD-ROM | disk | FTP | other *** search
- -c"This is a WinForce template Script file containing some functions."
- -c"Please note that this file is NOT updated with latest news..."
- -c"Copy relevant parts of it to your own script, and do appropriate adjustments!"
- -c----------------------------------------------------------
- -m3"You are supposed to inspect WinForce.WSF to get ideas, not run it!"
- -juEN -c"Unconditional jump"
- -c----------------------------------------------------------
- -!Anteckningar -c"Terminate an application"
- -c----------------------------------------------------------
- -fWinForce.WSD -c"Create debug file for logging of all funcions executed"
- -t"WinForce Running WinForce.WSF..." -c"Change title in window list"
- -c----------------------------------------------------------
- -22 -c"Wait until attempt to exit is made"
- -o"TADA.WAV 1" -c"Play a tune asynchronously..."
- -c----------------------------------------------------------
- -i"Write - (Namnl÷s)" -c"If instance of this application is not already running..."
- -w3 -rWRITE.EXE -c"...the program is started. The windowstyle is adjusted."
- -c----------------------------------------------------------
- -0"Play CANYON.MID" -c"Play a tune, then..."
- -21 -c"...refuse to exit WinForce..."
- -e"Mon XXXX-XX-01 08.30.00" -c"...wait for a monday, 1st of any month, 8.30 AM..."
- -20 -c"...no longer refuse to exit WinForce..."
- -#1999-12-31 -c"...set the current system date..."
- -$23.59.59 -c"...and the current system time."
- -c----------------------------------------------------------
- -1Write -c"Wait for a certain application to be started (by operator or other program)"
- -a"Write - (Namnl÷s)" -c"...activate the application..."
- -k"Hello there!" -c"...and send keystrokes."
- -c----------------------------------------------------------
- -h"Write - (Namnl÷s)" -c"Wait for Write to hide (lose focus)..."
- -i"MS-DOS-prompt" -c"Thereafter, if instance of this DOS-application is not already running..."
- -rDOSPRMPT.PIF -c"...we start it..."
- -p"Hello there!^M" -c"...copy some characters to the clipboard..."
- -k"% ep" -c"...and paste them to the DOS application using Sendkeys"
- -c"Change '% ep' to '% rl' if you use swedish version of Windows"
- -?4 -m3"%WSR% How are you today?" -c"Get clipboard contents and give message to user..."
- -c----------------------------------------------------------
- -iExcel -rExcel -c"Start an application..."
- -bC:\ -?0C:\DSKSPACE.TXT -c"...check free disk space on drive C:..."
- -?116 -c"...or check status of Shift key (virtual key code 16)..."
- -?3Abba -??"Enter your favourite pop group!" -c"...or prompt operator for input..."
- -v"Excel|Sheet1!R1C1 %WSR%" -c"...and poke a value to it."
- -q"Excel|Sheet1!R1C2 1234" -c"Wait for an application to return expected DDE value..."
- -?5"Excel|Sheet1!R1C3" -c"..read a DDE value..."
- -c"Change 'Sheet1' to 'Blad1' if you use swedish version of Excel."
- -?5"FLAPP1.SHAREUSR|RTDB!A_SEC" -c"An example from another app; Read DDE value..."
- -m3"Data: %WSR%" -c"And show the read data in a message box."
- -c----------------------------------------------------------
- -c"When running a script like this..."
- -iExc -rC:\EXCEL\EXCEL -kmsPressEnter! -:00 -d00.00.05 -?5"Excel|Sheet1!R1C1" -j=00 -%WSR% -v"Excel|Sheet1!R1C1 " -ju00
- -c"...one Script function at a time may be passed to WinForce using a control inside the client application."
- -c"The example uses Excel, but it could be any application working as a DDE server."
- -c"Change 'Sheet1' to 'Blad1' if you use swedish version of Excel."
- -c----------------------------------------------------------
- -?pCOM1:19200,n,8,1 -c"Set serial port parameters..."
- -?s"Excel Row 1 column 3 contained: %WSR%!" -c"...send a message..."
- -?r00.01.00 -?pCOM1: -c"...receive an answer within 1 minute and thereafter close the serial port..."
- -m3"Answer: %WSR%" -c"...and show the received message."
- -c----------------------------------------------------------
- -m2"You now have to wait a while, sorry!" -c"Prevent the operator to do anything."
- -d01.02.03 -c"Wait for 1 hour, two minutes and three seconds..."
- -m0 -c"Unload the MessageBox and give control to the operator."
- -sAnother.WSF -c"...and start another WinForce Script file."
- -c----------------------------------------------------------
- -u"MS-DOS-prompt" -c"Wait until a certain application terminated, and..."
- -lNewFile.TXT -c"..wait for a certain file to be created by another application...""
- -?fNewFile.TXT -c"...read the file..."
- -?3"--- Start of file---^M^J%WSR%^M^J--- End of file ---^M^J" -c"...add some headers..."
- -?aSaveFile.TXT -c"...and append to savefile..."
- -zdNewFile.TXT -c"..and finally delete the file.""
- -x0 -c"Terminate Windows..."
- -x1 -c"...or restart Windows..."
- -x2 -c"...or terminate Windows and reboot..."
- -y"C:\DOS\EDIT.COM C:\WINDOWS\WIN.INI" -c"...or terminate Windows, run a DOS program and thereafter restart Windows."
- -c----------------------------------------------------------
- -c"Change value in target system using 3rd party DDE server"
- -t"Change status of I/O"
-
- -?fIo.TMP -??"Enter I/O:"
- -zdIo.TMP -?aIo.TMP
-
- -iMelDDE -rMelDDE -?5MelDDE|Std!%WSR%
- -?fValue.TMP -??"%WS1%=%WSR%^MEnter new value:"
-
- -iMelDDE -rMelDDE -v"MelDDE|Std!%WS2% %WSR%"
- -?5MelDDE|Std!%WS2% -m3"%WS3%=%WSR%"
- -c----------------------------------------------------------
- -?32E2 -?33.14 -@/%WS1% -m3%WSR% -c"Some calculations"
- -c----------------------------------------------------------
- -:EN -c"Jump pointer"
- -w3 -r"NOTEPAD WinForce.WSF"